﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Form.Master" AutoEventWireup="true" CodeBehind="Form.aspx.cs" Inherits="BBPA.Admin.SYS.ExpressInfo.Form" %>
<%@ MasterType VirtualPath="~/Form.Master" %>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_main" runat="server">
     <div class="control-group">
        <label class="control-label">
            省
        </label>
        <div class="controls">
            <select id="Province" name="Province" class="span3"></select>
                    <asp:TextBox ID="tb_Province" runat="server"  CssClass="hide"></asp:TextBox>
                    
        </div>
    </div>
     <div class="control-group">
        <label class="control-label">
            市
        </label>
        <div class="controls">
            <select id="City" name="City" class="span3"></select>
                    <asp:TextBox ID="tb_City" runat="server"  CssClass="hide"></asp:TextBox>
        </div>
    </div>
      <div class="control-group">
        <label class="control-label">
            详细地址
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Address" runat="server"  required="required"></asp:TextBox>
        </div>
    </div>
     <div class="control-group">
        <label class="control-label">
            联系人
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Contacts" runat="server" ></asp:TextBox>
        </div>
    </div>
     <div class="control-group">
        <label class="control-label">
            办公电话
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Tel" runat="server" ></asp:TextBox>
        </div>
    </div>
     <div class="control-group">
        <label class="control-label">
            手机
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Mobile" runat="server" ></asp:TextBox>
        </div>
    </div>
     <div class="control-group">
        <label class="control-label">
            备注
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Description" runat="server" TextMode="MultiLine" ></asp:TextBox>
        </div>
    </div>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="cph_bottom" runat="server">
<script>
    var default_province, default_city, default_area;
    var tb_Province, tb_City, tb_Area;
    var tb_CityNo;
    $(function () {
        tb_Province = $("[name$=tb_Province]");
        tb_City = $("[name$=tb_City]");
        tb_Area = $("[name$=tb_Area]");

        tb_CityNo = $("[name$=tb_CityNo]");

        var province_val = tb_Province.val();
        var city_val = tb_City.val();
        var area_val = tb_Area.val();

        if (province_val == "") province_val = "河南省";
        ShowT = 0;
        new PCAS("Province", "City", province_val, city_val, function () {
            //$("select").select2();
            tb_Province.val($("#Province").val());
            tb_City.val($("#City").val());
            //tb_Area.val($("#Area").val());
            //
            //tb_CityNo.val(Get_CityNo($("#City").val()));
            $("select").not("[data-noselect2]").select2();
        });
        //$("select").not("[data-noselect2]").select2();

    })

    </script>
    </asp:Content>